package chapter_8;

import chapter_7.Dog;

import java.util.ArrayList;
import java.util.Collection;

public class Test1 {
    public static void main(String[] args) {
        Collection c = new ArrayList();
        c.add("你好");
        c.add(45);
        c.add(45.0);
        c.add(true);
        c.add(new Dog("小黑",5,"黑色"));
        System.out.println(c);
        c.remove(45);
        System.out.println(c);

//        System.out.println(c.contains(45));
//        System.out.println(c.contains("你好"));
//        System.out.println(c.contains("aaaaa"));

//        System.out.println(c);
//        System.out.println(c.isEmpty());
//        System.out.println(c.size());
//        c.clear();
//        System.out.println("-----------------------------------------");
//        System.out.println(c);
//        System.out.println(c.isEmpty());
//        System.out.println(c.size());


    }
}
